/*
 * File:   delaunay.h
 * Author: gustavo
 *
 * Created on September 26, 2011, 3:55 PM
 */

#ifndef DELAUNAY_H
#define	DELAUNAY_H

#ifdef	__cplusplus
extern "C" {
#endif

#include "surface.h"

#include "../matrix/matrix.h"

	void imp_delaunay_init_mesh_square(ImpSurface * s, int x0, int y0, int x1, int y1);
	boolean imp_delaunay_add_vertex(ImpSurface * s, ImpVertex * v);

	ImpSurface * imp_delaunay_from_matrix(ImpMatrix * mat, boolean remove_anchors);
	ImpSurface * imp_delaunay_from_points(ImpMatrix * Mat, int rows, int columns);


#ifdef	__cplusplus
}
#endif

#endif	/* DELAUNAY_H */

